package com.wsfk.ssm.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import maps.com.wsfk.ssm.user.UserMapper;

import com.wsfk.ssm.entity.User;

/***
 * 
 * @author zhangbao
 *	@Service()自动注入
 */
@Service("LoginSvcImpl")
public class LoginSvcImpl implements LoginSvc{
	
	private UserMapper userMapper;

	@Resource
	public void setUserMapper(UserMapper userMapper) {
		this.userMapper = userMapper;
	}

	public User doLogin(User user) {
		return userMapper.queryByNameAndPwd(user.getUserName(), user.getPassword());
	}

	
}
